import request from "../request/index";

const registerApi = {
  businessLicense: function (data) {
    return request({
      url: '/ocr/business-license',
      method: 'POST',
      headers: { "Content-Type": data.contentType},
      data:data.buffer
    })
  },  
  idCard: function (data) {
    return request({
      url: '/ocr/id-card',
      method: 'POST',
      headers: { "Content-Type": data.contentType},
      data:data.buffer
    })
  },
  smsCode: function (data) {
    return request({
      url: '/sms-code/add-customer?phone='+data,
      method: 'POST'
    })
  },
  fastRegister: function (data) {
    return request({
      url: "/customer/fast-register",
      method: 'POST',
      headers: { "Content-Type": 'application/json'},
      data
    })
  },

  
  

  

}
export default registerApi
